<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
	
	<!-- jquery pochodzacy z projektu assets RECZNIE - LIPA-->	
  	<!-- <script type="text/javascript" src="/yii_projekty/yii/testdrive/assets/js/jquery.js"></script> -->

 	<!-- jquery CAŁY Plik zewnetrznie LIPA-->	
 	<!--<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.js"></script> -->
 	
 	<!--  Dynamicznie ścieżka do aplikacji -->
 <script type="text/javascript" src="<?php  echo Yii::app()->request->baseUrl; ?>/assets/js/jquery.js"></script>
 
	
 
 <?php
 ////Yii::app()->clientScript->registerScript('helloscript',"consle.log('dfs');",CClientScript::POS_READY);
 ?>
 
 <script type="text/javascript">
         
        $(document).ready(
        function()
        {    
            console.log("jq działa");
            $('#dev_hide,#dev,#devPost_hide,#devPost,#devUser_hide,#devUser,#devSql_hide,#devSql,#devInne_hide,#devInne').css("display","none ");
           
           
           $("#dev_show").click(function () 
           {
                console.log("show");
                $('#dev_show').css("display","none ");
                $('#dev_hide').css("display","block");
                $('#dev').css("display","block");
                $('#dev').css("border","3px solid red ");
           }
           );

           $("#dev_hide").click(function () 
           {
                console.log("hide");
                $('#dev_show').css("display","block");
                $('#dev_hide').css("display","none ");
                $('#dev').css("display","none");
                //$('#dev').css("border","3px solid red ");
           }
           );
               
            $("#devPost_show").click(function () 
           {
                console.log("show");
                $('#devPost_show').css("display","none ");
                $('#devPost_hide').css("display","block");
                $('#devPost').css("display","block");
                $('#devPost').css("border","3px solid green ");
           }
           );

           $("#devPost_hide").click(function () 
           {
                console.log("hide");
                $('#devPost_show').css("display","block");
                $('#devPost_hide').css("display","none ");
                $('#devPost').css("display","none");
                //$('#dev').css("border","3px solid red ");
           }
           );    
 //USER              
               $("#devUser_show").click(function () 
           {
                console.log("show");
                $('#devUser_show').css("display","none ");
                $('#devUser_hide').css("display","block");
                $('#devUser').css("display","block");
                $('#devUser').css("border","3px solid yellow ");
           }
           );

           $("#devUser_hide").click(function () 
           {
                $('#devUser_show').css("display","block");
                $('#devUser_hide').css("display","none ");
                $('#devUser').css("display","none");
                //$('#dev').css("border","3px solid red ");
           }
           );  

           //SQL              
           $("#devSql_show").click(function () 
       {
            console.log("show_sql");
            $('#devSql_show').css("display","none ");
            $('#devSql_hide').css("display","block");
            $('#devSql_hide').css("color","black");
            $('#devSql').css("display","block");
            $('#devSql').css("border","3px solid pink ");
       }
       );

       $("#devSql_hide").click(function () 
       {
            $('#devSql_show').css("display","block");
            $('#devSql_hide').css("display","none ");
            $('#devSql').css("display","none");
            //$('#dev').css("border","3px solid red ");
       }
       ); 
     //Inne              
       $("#devInne_show").click(function () 
   {
        console.log("show_Inne");
        $('#devInne_show').css("display","none ");
        $('#devInne_hide').css("display","block");
        $('#devInne_hide').css("color","black");
        $('#devInne').css("display","block");
        $('#devInne').css("border","3px solid orange ");
   }
   );

   $("#devInne_hide").click(function () 
   {
        $('#devInne_show').css("display","block");
        $('#devInne_hide').css("display","none ");
        $('#devInne').css("display","none");
        //$('#dev').css("border","3px solid red ");
   }
   ); 
             
               
         });  
     </script>
       
       
        
     
<title>
    <?php
    //endode to taki chw filtracja::doHiddena
    echo CHtml::encode($this->pageTitle); 
    ?>
</title>
 
 
</head>

   
      
<body>
   
     <!-- Mój panel -->
     <div id="devAll" class="sticky-placeholder" style="display: block;">
     <div class="sticky-basket">
	<table style="background-color:  #B7D6E7; ">  
     <tr>
        <td>    
            <div id='dev_show' style="color: #60BF60">SHOW - DEV</div>
            <div id='dev_hide' style="color: #60BF60"><strong>HIDE - DEV</strong></div>
        </td>
         
        <td>    
            <div id='devPost_show' style="color: #60BF60">SHOW - POST</div>
            <div id='devPost_hide' style="color: #60BF60"><strong>HIDE - POST</strong></div>  
        </td>
         
        <td>    
            <div id='devUser_show' style="color: #60BF60">SHOW - USER</div>
            <div id='devUser_hide' style="color: #60BF60"><strong>HIDE - USER</strong></div>
        </td>
         <td>    
            <div id='devSql_show' style="color: #60BF60">SHOW - Zapytania</div>
            <div id='devSql_hide' style="color: #60BF60"><strong>HIDE - Zapytania</strong></div>
        </td>
        <td>    
            <div id='devInne_show' style="color: #60BF60">SHOW - INNE</div>
            <div id='devInne_hide' style="color: #60BF60"><strong>HIDE - INNE</strong></div>
        </td>
     </tr>
</table>

<div id="dev" >
    <?php
    echo 'Wesja yii: ';
    echo Yii::getVersion();
    echo '<br>';
    $var_dumpy = CVarDumper::$stos_wynikow;
    echo '<pre>';
    print_r($var_dumpy);
    echo '</pre>';
    ?>
</div>
<div id="devPost">
    <?php
    echo 'Dane otrzymane POSTEM(wszystko): ';
    echo '<br>';
    echo '<pre>';
    CVarDumper::dump($_POST, 10, true);
    echo '</pre>';
    ?>
</div>

<div id="devUser" >
    <?php
    echo 'Dane USER: ';
    echo '<br>';
    echo '<pre>';
    CVarDumper::dump(Yii::app()->user, 10, true);
    echo '</pre>';
    ?>
</div>
<div id="devSql" >
    <?php
    echo 'Dane Sql: ';
    echo '<br>';
    echo '<pre> Costam przykładowy tekst sql';
    # @todo do obsłurzenia w przyszłości
    //CVarDumper::dump(Yii::app()->user, 10, true);
    echo '</pre>';
    ?>
</div>

<div id="devInne" >
    <?php
    echo 'Dane Inne: ';
    echo '<br>';
    echo '<pre> Costam przykładowy tekst inne';
    # @todo do obsłurzenia w przyszłości
    //CVarDumper::dump(Yii::app()->user, 10, true);
    echo '</pre>';
    ?>
</div>


<div class="container" id="page">

	<div id="header">
		<div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div>
	</div><!-- header -->
        
	

	<div id="mainmenu">
		<?php
	
		 $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'Home', 'url'=>array('/site/index')),
				array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
				array('label'=>'Contact', 'url'=>array('/site/contact')),
				array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		)); 
		
		?>
		
	</div><!-- mainmenu -->
	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
	<?php endif?>

	<?php echo $content; ?>

	<div id="footer">
		Copyright &copy; <?php echo date('Y'); ?> by My Company.<br/>
		All Rights Reserved.<br/>
		<?php echo Yii::powered(); ?>
	</div><!-- footer -->

</div><!-- page -->

</body>
</html>